﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SubForm.Master" AutoEventWireup="true"
    CodeBehind="TransferredPreContract.aspx.cs" Inherits="PreContractWeb.Task.TransferredPreContract" %>

<%@ Register Src="../UserControl/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        function ShowPage(id) {
            window.open('EditPreContractInfo.aspx?id=' + id, '', 'menubar=0,resizable=1,scrollbars=yes');
        }
    </script>
    <div style="min-width: 1500px">
        <br />
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td class="panel_header">
                    已转正预合同列表 (Transferred Pre-Contract List)
                </td>
            </tr>
            <tr>
                <td class="panel_body_wicr">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <br />
                                <table width="60%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td align="left" valign="middle">
                                            预合同号:<br />
                                            Precontract #:
                                        </td>
                                        <td align="left" valign="middle">
                                            <asp:TextBox ID="tbPreContractNo" runat="server" Width="120px"></asp:TextBox>
                                        </td>
                                        <td align="left" valign="middle">
                                            转正时间:<br />
                                            Transferred Date:
                                        </td>
                                        <td align="left" valign="middle">
                                            <span>
                                                <asp:TextBox ID="tbSearchStartDate" runat="server" allowempty="false" CssClass="cssPopdate"
                                                    onkeypress="event.returnValue=false;" checkmaster="checkDate" Width="100px" IconID="DateIcon01"></asp:TextBox>
                                                <img alt="" id="DateIcon01" class="DateIcon" src="../Images/calendar_18.gif" /></span>
                                            &nbsp;~&nbsp; <span>
                                                <asp:TextBox ID="tbSearchEndDate" runat="server" allowempty="false" CssClass="cssPopdate"
                                                    onkeypress="event.returnValue=false;" checkmaster="checkDate" Width="100px" IconID="DateIcon02"></asp:TextBox>
                                                <img alt="" id="DateIcon02" class="DateIcon" src="../Images/calendar_18.gif" /></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="middle">
                                            预合同转正状态:<br />
                                            Transferred Status:
                                        </td>
                                        <td align="left" valign="middle">
                                            <asp:DropDownList ID="dpContractStatus" runat="server" Width="120px">
                                                <asp:ListItem Value="">All</asp:ListItem>
                                                <asp:ListItem Value="12">转正</asp:ListItem>
                                                <asp:ListItem Value="11">部分转正</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td align="left" valign="middle" colspan="2">
                                            <asp:Button ID="btnQuickSearch" runat="server" CssClass="bgButton" Text="查询 (Search)"
                                                Width="100px" OnClick="btnQuickSearch_Click" />
                                            &nbsp;
                                            <asp:Button ID="btnQuickExport" runat="server" CssClass="bgButton" Text="导出(Export)"
                                                Width="100px" OnClick="btnQuickExport_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" height="1" valign="middle" style="border-top: 1px; border-top-color: #BBBBBB;
                                border-top-style: dashed; font-size: xx-small;">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="left" valign="middle">
                                <b>&nbsp;总数(Total):<span id="totalSpan" runat="server"></span></b>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:GridView ID="gvTransferredPreContract" runat="server" PageSize="10" AutoGenerateColumns="False"
                                    DataKeyNames="PreContractID" AllowPaging="True" Width="100%" OnRowDataBound="gvTransferredPreContract_RowDataBound">
                                    <PagerSettings Visible="False"></PagerSettings>
                                    <EmptyDataTemplate>
                                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td>
                                                    没有数据(No Data).
                                                </td>
                                            </tr>
                                        </table>
                                    </EmptyDataTemplate>
                                    <RowStyle Height="20px" CssClass="table_row_1"></RowStyle>
                                    <SelectedRowStyle CssClass="SelectedRow"></SelectedRowStyle>
                                    <HeaderStyle CssClass="table_header"></HeaderStyle>
                                    <AlternatingRowStyle CssClass="table_row_2"></AlternatingRowStyle>
                                    <Columns>
                                        <asp:BoundField DataField="PreContractID" HeaderText="PreContractID" InsertVisible="False"
                                            ReadOnly="True">
                                            <ItemStyle CssClass="hidden"></ItemStyle>
                                            <HeaderStyle CssClass="hidden" Wrap="False"></HeaderStyle>
                                        </asp:BoundField>
                                        <asp:BoundField>
                                            <ItemStyle CssClass="hidden"></ItemStyle>
                                            <HeaderStyle CssClass="hidden" Wrap="False"></HeaderStyle>
                                        </asp:BoundField>
                                        <asp:BoundField>
                                            <ItemStyle CssClass="hidden"></ItemStyle>
                                            <HeaderStyle CssClass="hidden" Wrap="False"></HeaderStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="PreContractType" HeaderText="类型" HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="60px"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="PreContractAdjust" HeaderText="分类" HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="60px"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="PreContractStatus" HeaderText="状态" HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="PreContractNo" HeaderText="预合同号" HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="120px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="BDCode" HeaderText="事业部" HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="BGCode" HeaderText="BG" HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ContractName" HeaderText="合同名称" SortExpression="ContractName"
                                            HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="240px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ProductName" HeaderText="产品" HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="120px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ClusterCName" HeaderText="大区" HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ProvinceCName" HeaderText="省" HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="CATCode" HeaderText="CAT" HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="TransferMoney" HeaderText="转正金额" DataFormatString="{0:N2}"
                                            HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="TransferMoneyME" HeaderText="ME" DataFormatString="{0:N4}"
                                            HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="TransferDate" HeaderText="转正时间" DataFormatString="{0:yyyy-MM-dd}"
                                            HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="100px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="SignActual" HeaderText="最终转正时间" DataFormatString="{0:yyyy-MM-dd}"
                                            HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="80px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ERPReceived" HeaderText="订单确认时间" DataFormatString="{0:yyyy-MM-dd}"
                                            HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="80px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Delivered" HeaderText="到货状态" HtmlEncode="false">
                                            <ItemStyle HorizontalAlign="Center" Width="100px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="AOGDate" HeaderText="到货时间" HtmlEncode="false" DataFormatString="{0:yyyy-MM-dd}">
                                            <ItemStyle HorizontalAlign="Center" Width="100px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="AprTransferredConstractNo" HeaderText="正式合同号" HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="120px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="OrionNo" HeaderText="Orion 编号" HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="120px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="TransferDays" HeaderText="转正天数" HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" Width="80px" />
                                        </asp:BoundField>
                                    </Columns>
                                </asp:GridView>
                                <uc1:Pager ID="pgTransferredPreContract" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
